/*
 * @Date: 2022-04-12 09:17:10
 * @LastEditors: 春贰
 * @gitee: https://gitee.com/chun22222222
 * @github: https://github.com/chun222
 * @Desc:
 * @LastEditTime: 2022-06-01 16:59:26
 * @FilePath: \server\system\router\tools.go
 */

package router

import (
	"go2admin_pure/system/controller/sys/pdf"
	"go2admin_pure/system/controller/sys/tools"
	"go2admin_pure/system/middleware"
	"github.com/gin-gonic/gin"
)

func ToolsRouter(r *gin.Engine) {
	//无需登录
	r.POST("/sysconfigs", tools.Config)

	authG := r.Group("tools")
	//只需要登录
	authG.Use(middleware.JwtMid())
	{
		authG.POST("/sequence", tools.Sequence)
		authG.POST("/genpdf", pdf.GenPdf)
	}

}
